<include file="__THEME__/header" />
<include file="__THEME__/editor" />
<script type="text/javascript" src="../Public/Js/addBlog.js"></script>
<div class="content_holder">
<div class="content no_bg">
  <include file="../Public/_blog_header" />
  <div class="main no_l">
    <div class="mainbox">
        <include file="../Public/_right" />
        <div class="mainbox_appC">
        <div class=page_title> 
            <h2>
                <span class="f12px fn right"><a href="javascript:history.back( -1 )">&lt;&lt;返回上一页</a></span>
                修改{$ts['app']['app_alias']}
            </h2>
        </div>
        <div class="BlogBox">
		<form name="editBlog" action="{$link}" method="post" onsubmit="return check()">
            <div class="LogList">
              <ul class="edit">
                <li style="padding:0;">
                  <label>标题: &nbsp;</label>
                  <div class="c1">
                    <select name="category" id="select" onchange="javascript:changeCategory($(this))" class="text mr5">
                      <php>foreach( $blog_category as $value ){</php>
                      <option value="{$value['id']}" <eq name="category['id']" value="$value['id']">selected=selected</eq> title="{$value['name']}">{$value['name']|getShort=8}</option>
                      <php>}</php>
                      <optgroup id="group">
                      <option value="0">+添加分类</option>
                      </optgroup>
                    </select> 
                    <input id="title" name="title" type="text" class="text" style="width:363px;" onBlur="this.className='text'" onFocus="this.className='text2'" maxlength="25" value="{$title}" />
                  </div>
                </li>
                <li style="padding:0;">
                  <label>内容: &nbsp;</label>
                  <div class="c1"><textarea id="content" name="content" style="height:350px;">{$content}</textarea></div>
                </li>
                <li style="padding:0;">
                           

                        <php>if( !empty( $saveId ) ){</php>
                        <li style="padding:0;">
                            <div class="c1"></div>
                        </li>
                        <php>}</php>

                        <neq name ="attach" value="">
                            <div class ="attach" style="display:none;">
                                <volist name ="attach" id="vo"></volist>
                                <input class="attach{$vo['id']}" type="hidden" name="attach[]" value="{$vo['id']}|{$vo['name']}"><p>
                                    <span class="attach{$vo['id']}"> [附件] {$vo['name']}</span>
                                    <span class="attach{$vo['id']}"><a class="attach{$vo['id']}" href="javascript:void(0)" onclick="deleteAttach({$vo['id']})">删除</a></span></p>
                                </volist>
                            </div>
                        </neq>
						
                        <li style="padding:0;">
						    <label>&nbsp;</label>
                            <div class="c1" style="height:30px;">
                                <input id="id" name="id" type="hidden" value="{$id}">
                                <input id="friendid" name="mention" type="hidden" value="">
                                <input type="submit" class="btn_b" value="发 表" />
                                <php>if( !empty( $saveId ) ){</php>
                                <input id="saveButton" type="button" onclick="javascript:autosave()"class="btn_b" value="存至草稿箱"/> <span id="autoSave" style="display:none;"></span>
                                <input id="saveId" name="saveId" type="hidden" value="{$saveId}"/>
                                <php>}else{</php>
                                <input id="saveButton" type="button" onclick="javascript:history.back(-1)"class="btn_w" value="取消"/>
                                <php>}</php>
                            </div>
                </li>
              </ul>
            </div>
          </form>
        </div>
        <div class="c"></div>
      </div>
    </div>
    <div class="c"></div>
  </div>
</div>
</div>
<script>
$(document).ready(function(){
	loadEditor("content");
});
</script> 
<include file="__THEME__/footer" />
